<div class='well well-search'>
  <form action='/search/' method='get'>

    <fieldset>
      <legend>Поиск</legend>
      <label>Ключевые слова: </label>
      <div class="controls controls-row">
        {{search_blur_form.keywords}}
      </div>
      


      <label >Год издания: 
        {% if search_blur_form.year__gte.errors and  search_blur_form.year__lte.errors %}
        <span class='data'>{{  search_blur_form.year__gte.errors|striptags }}</span>
        {% else %}
        <span class='data'>{{  search_blur_form.year__gte.errors|striptags }}</span>
        <span class='data'>{{  search_blur_form.year__lte.errors|striptags }}</span>
        {% endif %}

      </label>
      <div class="controls controls-row">

        <div class="input-prepend span6">
         <div class="add-on span3">от</div>
         <div></div>
         {{search_blur_form.year__gte}}
       </div>

       <div class="input-prepend span6">
         <div class="add-on span3">до</div>
         <div></div>
         {{search_blur_form.year__lte}}
       </div>
     </div>


     <label >Цена: 

      {% if search_blur_form.price__gte.errors and  search_blur_form.price__lte.errors %}
      <span class='data'>{{  search_blur_form.price__gte.errors|striptags }}</span>
      {% else %}
      <span class='data'>{{  search_blur_form.price__gte.errors|striptags }}</span>
      <span class='data'>{{  search_blur_form.price__lte.errors|striptags }}</span>
      {% endif %}
    </label>
    <div class="controls controls-row">

      <div class="input-prepend span6">

       <div class="add-on span3">от</div>
       <div></div>
       {{search_blur_form.price__gte}}
     </div>
     <div class="input-prepend span6">
       <div class="add-on span3">до</div>
       <div></div>
       {{search_blur_form.price__lte}}

     </div>
   </div>

   <div class="controls controls-row">
     {{search_blur_form.category}}
   </div>
   
   <div class="controls controls-row">
     {{search_blur_form.order_by}}
   </div>

   <input class='btn' type='submit' value='Искать!'>

   


 </fieldset>

</form>


</div>
{# {% crispy search_blur_form search_blur_form.helper %} #}


